
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>一、Node环境准备 · Gitbook操作指南</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="松露老师">
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-flexible-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-theme-lou/lou.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="2语法介绍.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
         
<div class="donate-modal modal">
  <div class="modal-header">
    <div>
      <span>
        <img
          id="modal-avatar"
          class="modal-avatar"
          src="https://qinius.kujiajia.xyz/aaa-dobe/%E5%8D%A1%E9%80%9A%E8%90%8C%E5%A4%B4%E5%83%8F.png"
        />
      </span>
      <span id="nickname"> 松露老师 </span>
      <p class="modal-close close" onclick="closeDonateModal()">×</p>
    </div>
    <div class="message">
      <div class="tip">
        <i></i>
        <span>随意打赏，但不要超过一杯咖啡钱 ☕️</span>
      </div>
    </div>
  </div>
  <div class="modal-content">
    <div class="modal-pay-way">
      <div id="wxpay" onclick="showDonateImg(0)">
        <input
          type="radio"
          name="pay-way"
          value="wxpay"
          class="zs-type"
          checked="checked"
        />
        <span>
          <img
            id="wxpay-logo"
            src=""
          />
        </span>
      </div>
      <div id="alipay" onclick="showDonateImg(1)">
        <input type="radio" name="pay-way" value="alipay" class="zs-type" />
        <span>
          <img
            id="alipay-logo"
            src=""
          />
        </span>
      </div>
    </div>
    <div class="modal-pay-qrcode">
      <img id="wxpay-code" src="https://qinius.kujiajia.xyz/aaa-dobe/%E8%B5%9E%E8%B5%8F%E7%A0%81-%E5%BE%AE%E4%BF%A1-%E6%96%B9.png" />
      <img
        id="alipay-code"
        src="https://qinius.kujiajia.xyz/aaa-dobe/%E8%B5%9E%E8%B5%8F%E7%A0%81-%E6%94%AF%E4%BB%98%E5%AE%9D-%E6%96%B9.png"
        hidden
      />
    </div>
  </div>
</div>
<div class="mask"></div>


<div class="book">
  <div class="header-inner">
    <!-- LOGO -->
    <div class="logo"></div>
    <span class="title"></span>

    <!-- Search -->
    
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>


    <!-- Nav -->
    <ul class="header-nav">
      <li>
        <a href="https://space.bilibili.com/378936143" target="_blank">B站</a>
      </li><li>
        <a href="https://ke.qq.com/course/3613637" target="_blank">腾讯课堂</a>
      </li><li>
        <a href="https://edu.csdn.net/course/detail/32032" target="_blank">CSDN</a>
      </li>
    </ul>
  </div>

  <div class="book-summary">
    <div class="book-summary-title">文档目录</div>
     
    <nav role="navigation">


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    零、简介
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2" data-path="1环境准备.html">
            
                <a href="1环境准备.html">
            
                    
                    一、Node环境准备
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="2语法介绍.html">
            
                <a href="2语法介绍.html">
            
                    
                    二、Markdown语法介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="3插件运用.html">
            
                <a href="3插件运用.html">
            
                    
                    三、Gitbook插件运用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="4服务部署.html">
            
                <a href="4服务部署.html">
            
                    
                    四、Nginx服务部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="5生成电子书.html">
            
                <a href="5生成电子书.html">
            
                    
                    五、生成电子书
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>

</nav>
     
  </div>

  <!-- Content nav -->
  <div class="book-anchor">
    <div class="book-anchor-title"></div>

    <div class="book-anchor-body"></div>
  </div>

  <div class="book-body">
    
    <div class="body-inner">
       

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >一、Node环境准备</a>
    </h1>
</div>



      <div class="page-wrapper" tabindex="-1" role="main">
        <div class="page-inner">
          
<div id="book-search-results">
    <div class="search-noresults">
    
          <section class="normal markdown-section">
             <h1 class="article-title no-number" id="&#x73AF;&#x5883;&#x51C6;&#x5907;">&#x73AF;&#x5883;&#x51C6;&#x5907;</h1>

<h1 id="&#x914D;&#x7F6E;-nodejs-&#x73AF;&#x5883;">&#x914D;&#x7F6E; Node.js &#x73AF;&#x5883;</h1>
<p>&#x4F7F;&#x7528; Gitbook &#x9700;&#x8981;&#x914D;&#x7F6E; Node.js &#x73AF;&#x5883;&#xFF0C;&#x5177;&#x4F53;&#x7684;&#x5B89;&#x88C5;&#x6B65;&#x9AA4;&#xFF0C;&#x53EF;&#x67E5;&#x770B;<a href="https://nodejs.org/zh-cn/download/" target="_blank">&#x5B98;&#x65B9;&#x6587;&#x6863;</a>&#x3002;</p>
<blockquote>
<p>[!danger]</p>
<p>&#x7531;&#x4E8E;&#x76EE;&#x524D; Gitbook &#x9879;&#x76EE;&#x5DF2;&#x7ECF;&#x505C;&#x6B62;&#x7EF4;&#x62A4;&#xFF0C;Node &#x8FC7;&#x9AD8;&#x53EF;&#x80FD;&#x51FA;&#x73B0;&#x4E0D;&#x517C;&#x5BB9;&#x95EE;&#x9898;&#x3002;</p>
<p>&#x76EE;&#x524D;&#xFF0C;&#x7ECF;&#x7B14;&#x8005;&#x6D4B;&#x8BD5;&#xFF0C;Node &#x7248;&#x672C; <strong>10.23.0</strong> &#x4EE5;&#x4E0B;&#x7248;&#x672C;&#x53EF;&#x4F7F;&#x7528;&#x3002;</p>
</blockquote>
<p>&#x5B89;&#x88C5;&#x6210;&#x529F;&#x540E;&#xFF0C;&#x6267;&#x884C;&#x547D;&#x4EE4;&#x53EF;&#x67E5;&#x770B; node &#x7248;&#x672C;&#x548C; npm &#x7248;&#x672C;&#x3002;</p>
<pre><code class="lang-sh"><span class="hljs-comment"># &#x67E5;&#x770B;node&#x7248;&#x672C;</span>
node -v
<span class="hljs-comment"># &#x67E5;&#x770B;npm&#x7248;&#x672C;</span>
npm -v
</code></pre>
<h1 id="&#x5B89;&#x88C5;-gitbook">&#x5B89;&#x88C5; Gitbook</h1>
<p>&#x4F7F;&#x7528;&#x4E0B;&#x9762;&#x547D;&#x4EE4;&#xFF0C;&#x5B89;&#x88C5; gitbook &#x5305;&#x3002;</p>
<pre><code class="lang-sh">npm install -g gitbook-cli
</code></pre>
<h1 id="&#x521D;&#x59CB;&#x5316;&#x9879;&#x76EE;">&#x521D;&#x59CB;&#x5316;&#x9879;&#x76EE;</h1>
<h2 id="gitbook-&#x521D;&#x59CB;&#x5316;">Gitbook &#x521D;&#x59CB;&#x5316;</h2>
<p>&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x6587;&#x4EF6;&#x5939;&#xFF0C;&#x5E76;&#x8FDB;&#x5165;&#x5230;&#x8BE5;&#x6587;&#x4EF6;&#x5939;&#x4E2D;&#xFF0C;&#x6267;&#x884C;&#x4E0B;&#x9762;&#x547D;&#x4EE4;&#xFF0C;&#x521D;&#x59CB;&#x5316; gitbook &#x9879;&#x76EE;&#x3002;</p>
<pre><code class="lang-sh">gitbook init
</code></pre>
<p>&#x6267;&#x884C;&#x7ED3;&#x679C;</p>
<pre><code class="lang-sh">info: create SUMMARY.md
info: initialization is finished
</code></pre>
<p>&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x521B;&#x5EFA;&#x4E86; SUMMARY.md &#x6587;&#x6863;&#xFF0C;&#x8FD9;&#x662F;&#x7535;&#x5B50;&#x4E66;&#x7684;&#x76EE;&#x5F55;&#x6587;&#x6863;&#x3002;</p>
<p>&#x7136;&#x540E;&#x521B;&#x5EFA;&#x4E00;&#x4E2A; REAMDE.md &#x6587;&#x6863;&#xFF0C;&#x7528;&#x6765;&#x5BF9;&#x8FD9;&#x4E2A;&#x9879;&#x76EE;&#x8FDB;&#x884C;&#x4ECB;&#x7ECD;&#x3002;</p>
<h2 id="npm-&#x521D;&#x59CB;&#x5316;">npm &#x521D;&#x59CB;&#x5316;</h2>
<p>&#x6267;&#x884C;&#x4E0B;&#x9762;&#x547D;&#x4EE4;&#xFF0C;&#x521D;&#x59CB;&#x5316;&#x4E3A; npm &#x9879;&#x76EE;&#x3002;</p>
<pre><code class="lang-sh">npm init
</code></pre>
<p>&#x547D;&#x4EE4;&#x4F1A;&#x63D0;&#x793A;&#x8F93;&#x5165;&#x9879;&#x76EE;&#x4FE1;&#x606F;&#xFF0C;&#x53EF;&#x9ED8;&#x8BA4;&#x4E0D;&#x586B;&#x5199;&#xFF0C;&#x76F4;&#x63A5;&#x56DE;&#x8F66;&#x3002;</p>
<p>&#x6700;&#x540E;&#xFF0C;&#x4F1A;&#x663E;&#x793A;&#x914D;&#x7F6E;&#x4FE1;&#x606F;&#xFF0C;&#x8F93;&#x5165;<code>yes</code>&#x56DE;&#x8F66;&#x5373;&#x53EF;&#x521D;&#x59CB;&#x5316;&#x5B8C;&#x6BD5;&#x3002;</p>
<p><img src="assets/image-20210704101942008.png" alt="image-20210704101942008"></p>
<p>&#x521D;&#x59CB;&#x5316;&#x6210;&#x529F;&#x540E;&#xFF0C;&#x7CFB;&#x7EDF;&#x4F1A;&#x81EA;&#x52A8;&#x5728;&#x5F53;&#x524D;&#x76EE;&#x5F55;&#x521B;&#x5EFA;<code>package.json</code>&#x6587;&#x4EF6;&#xFF0C;&#x8FD9;&#x662F; npm &#x9879;&#x76EE;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x3002;</p>
<h2 id="&#x7AE0;&#x8282;&#x914D;&#x7F6E;">&#x7AE0;&#x8282;&#x914D;&#x7F6E;</h2>
<p>GitBook &#x4F7F;&#x7528;&#x6587;&#x4EF6; <code>SUMMARY.md</code> &#x6765;&#x5B9A;&#x4E49;&#x4E66;&#x672C;&#x7684;&#x7AE0;&#x8282;&#x548C;&#x5B50;&#x7AE0;&#x8282;&#x7684;&#x7ED3;&#x6784;&#x3002;&#x6587;&#x4EF6; <code>SUMMARY.md</code> &#x88AB;&#x7528;&#x6765;&#x751F;&#x6210;&#x4E66;&#x672C;&#x5185;&#x5BB9;&#x7684;&#x9884;&#x89C8;&#x8868;&#x3002;</p>
<p><code>SUMMARY.md</code> &#x7684;&#x683C;&#x5F0F;&#x662F;&#x4E00;&#x4E2A;&#x7B80;&#x5355;&#x7684;&#x94FE;&#x63A5;&#x5217;&#x8868;&#xFF0C;&#x94FE;&#x63A5;&#x7684;&#x540D;&#x5B57;&#x662F;&#x7AE0;&#x8282;&#x7684;&#x540D;&#x5B57;&#xFF0C;&#x94FE;&#x63A5;&#x7684;&#x6307;&#x5411;&#x662F;&#x7AE0;&#x8282;&#x6587;&#x4EF6;&#x7684;&#x8DEF;&#x5F84;&#x3002;</p>
<p>&#x5B50;&#x7AE0;&#x8282;&#x88AB;&#x7B80;&#x5355;&#x7684;&#x5B9A;&#x4E49;&#x4E3A;&#x4E00;&#x4E2A;&#x5185;&#x5D4C;&#x4E8E;&#x7236;&#x7AE0;&#x8282;&#x7684;&#x5217;&#x8868;&#x3002;</p>
<pre><code class="lang-markdown"><span class="hljs-section"># &#x6982;&#x8981;</span>

<span class="hljs-bullet">- </span>[<span class="hljs-string">&#x7AE0;&#x8282;&#x4E00;</span>](<span class="hljs-link">chapter1.md</span>)
<span class="hljs-bullet">- </span>[<span class="hljs-string">&#x7AE0;&#x8282;&#x4E8C;</span>](<span class="hljs-link">chapter2.md</span>)
<span class="hljs-bullet">- </span>[<span class="hljs-string">&#x7AE0;&#x8282;&#x4E09;</span>](<span class="hljs-link">chapter3.md</span>)
</code></pre>
<pre><code class="lang-markdown"><span class="hljs-section"># &#x6982;&#x8981;</span>

<span class="hljs-bullet">- </span>[<span class="hljs-string">&#x7B2C;&#x4E00;&#x7AE0;</span>](<span class="hljs-link">part1/README.md</span>)
  - [<span class="hljs-string">1.1 &#x7B2C;&#x4E00;&#x8282;</span>](<span class="hljs-link">part1/writing.md</span>)
  - [<span class="hljs-string">1.2 &#x7B2C;&#x4E8C;&#x8282;</span>](<span class="hljs-link">part1/gitbook.md</span>)
<span class="hljs-bullet">- </span>[<span class="hljs-string">&#x7B2C;&#x4E8C;&#x7AE0;</span>](<span class="hljs-link">part2/README.md</span>)
  - [<span class="hljs-string">2.1 &#x7B2C;&#x4E00;&#x8282;</span>](<span class="hljs-link">part2/feedback_please.md</span>)
  - [<span class="hljs-string">2.2 &#x7B2C;&#x4E8C;&#x8282;</span>](<span class="hljs-link">part2/better_tools.md</span>)
</code></pre>
<h1 id="&#x542F;&#x52A8;&#x9879;&#x76EE;">&#x542F;&#x52A8;&#x9879;&#x76EE;</h1>
<p>&#x5728;<code>package.json</code>&#x6587;&#x4EF6;&#x7684;<code>scripts</code>&#x4E2D;&#x914D;&#x7F6E;&#x5982;&#x4E0B;&#x7684;&#x811A;&#x672C;&#x547D;&#x4EE4;&#xFF1A;</p>
<pre><code class="lang-json"><span class="hljs-string">&quot;scripts&quot;</span>: {
    <span class="hljs-string">&quot;serve&quot;</span>: <span class="hljs-string">&quot;gitbook serve&quot;</span>,
    <span class="hljs-string">&quot;build&quot;</span>: <span class="hljs-string">&quot;gitbook build&quot;</span>
}
</code></pre>
<p>&#x5206;&#x522B;&#x662F; gitbook &#x5728;&#x672C;&#x5730;&#x542F;&#x52A8;&#x7684;&#x547D;&#x4EE4;&#xFF0C;&#x548C; gitbook &#x6253;&#x5305;&#x6210; HTML &#x9759;&#x6001;&#x6587;&#x4EF6;&#x7684;&#x547D;&#x4EE4;&#x3002;</p>
<p>&#x5BF9;&#x4E8E;&#x672C;&#x5730;&#x6F14;&#x793A;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x901A;&#x8FC7;&#x4E0B;&#x9762;&#x547D;&#x4EE4;&#x542F;&#x52A8;&#x3002;</p>
<pre><code class="lang-sh">npm run serve
</code></pre>
<p>&#x8FD9;&#x6761;&#x547D;&#x4EE4;&#x5176;&#x5B9E;&#x5C31;&#x662F;&#x6267;&#x884C;&#x4E86;<code>package.json</code>&#x6587;&#x4EF6;&#x7684;<code>scripts</code>&#x4E2D;&#x7684;<code>serve</code>&#x811A;&#x672C;&#xFF0C;&#x5373;<code>gitbook serve</code>&#x3002;</p>
<p>&#x542F;&#x52A8;&#x6210;&#x529F;&#x540E;&#xFF0C;&#x5C31;&#x53EF;&#x4EE5;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x8F93;&#x5165;<code>http://localhost:4000/</code>&#xFF0C;&#x5982;&#x56FE;&#x6240;&#x793A;&#x3002;</p>
<p><img src="assets/image-20210704102712616.png" alt="image-20210704102712616"></p>
<h1 id="&#x5FFD;&#x7565;&#x6587;&#x4EF6;">&#x5FFD;&#x7565;&#x6587;&#x4EF6;</h1>
<p>&#x4EFB;&#x4F55;&#x5728;&#x6587;&#x4EF6;&#x5939;&#x4E0B;&#x7684;&#x6587;&#x4EF6;&#xFF0C;&#x5728;&#x6700;&#x540E;&#x751F;&#x6210;&#x7535;&#x5B50;&#x4E66;&#x65F6;&#x90FD;&#x4F1A;&#x88AB;&#x62F7;&#x8D1D;&#x5230;&#x8F93;&#x51FA;&#x76EE;&#x5F55;&#x4E2D;&#xFF0C;&#x5982;&#x679C;&#x60F3;&#x8981;&#x5FFD;&#x7565;&#x67D0;&#x4E9B;&#x6587;&#x4EF6;&#xFF0C;&#x548C; Git &#x4E00;&#x6837;&#xFF0C; Gitbook &#x4F1A;&#x4F9D;&#x6B21;&#x8BFB;&#x53D6; <code>.gitignore</code>, <code>.bookignore</code> &#x548C; <code>.ignore</code> &#x6587;&#x4EF6;&#x6765;&#x5C06;&#x4E00;&#x4E9B;&#x6587;&#x4EF6;&#x548C;&#x76EE;&#x5F55;&#x6392;&#x9664;&#x3002;</p>
<h1 id="&#x914D;&#x7F6E;&#x6587;&#x4EF6;">&#x914D;&#x7F6E;&#x6587;&#x4EF6;</h1>
<p>Gitbook &#x5728;&#x7F16;&#x8BD1;&#x4E66;&#x7C4D;&#x7684;&#x65F6;&#x5019;&#x4F1A;&#x8BFB;&#x53D6;&#x4E66;&#x7C4D;&#x6E90;&#x7801;&#x9876;&#x5C42;&#x76EE;&#x5F55;&#x4E2D;&#x7684; <code>book.js</code> &#x6216;&#x8005; <code>book.json</code>&#xFF0C;&#x8FD9;&#x91CC;&#x4EE5; <code>book.json</code> &#x4E3A;&#x4F8B;&#xFF0C;&#x53C2;&#x8003; <a href="https://github.com/GitbookIO/gitbook" target="_blank">gitbook &#x6587;&#x6863;</a> &#x53EF;&#x4EE5;&#x77E5;&#x9053;&#xFF0C;<code>book.json</code> &#x5E38;&#x7528;&#x7684;&#x914D;&#x7F6E;&#x5982;&#x4E0B;&#x3002;</p>
<pre><code class="lang-json">{
    <span class="hljs-comment">// &#x4E66;&#x7C4D;&#x4FE1;&#x606F;</span>
    <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;&#x4E66;&#x540D;&quot;</span>,
    <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;&#x63CF;&#x8FF0;&quot;</span>,
    <span class="hljs-string">&quot;isbn&quot;</span>: <span class="hljs-string">&quot;&#x56FE;&#x4E66;&#x7F16;&#x53F7;&quot;</span>,
      <span class="hljs-string">&quot;author&quot;</span>: <span class="hljs-string">&quot;&#x4F5C;&#x8005;&quot;</span>,
      <span class="hljs-string">&quot;lang&quot;</span>: <span class="hljs-string">&quot;zh-cn&quot;</span>,

    <span class="hljs-comment">// &#x63D2;&#x4EF6;&#x5217;&#x8868;</span>
    <span class="hljs-string">&quot;plugins&quot;</span>: [],

    <span class="hljs-comment">// &#x63D2;&#x4EF6;&#x5168;&#x5C40;&#x914D;&#x7F6E;</span>
    <span class="hljs-string">&quot;pluginsConfig&quot;</span>: {
        <span class="hljs-string">&quot;fontSettings&quot;</span>: {
            <span class="hljs-string">&quot;theme&quot;</span>: <span class="hljs-string">&quot;sepia&quot;</span>, <span class="hljs-string">&quot;night&quot;</span> or <span class="hljs-string">&quot;white&quot;</span>,
            <span class="hljs-string">&quot;family&quot;</span>: <span class="hljs-string">&quot;serif&quot;</span> or <span class="hljs-string">&quot;sans&quot;</span>,
            <span class="hljs-string">&quot;size&quot;</span>: <span class="hljs-number">1</span> to <span class="hljs-number">4</span>
        }
    },

      <span class="hljs-comment">// &#x6A21;&#x677F;&#x53D8;&#x91CF;</span>
      <span class="hljs-string">&quot;variables&quot;</span>: {
          <span class="hljs-comment">// &#x81EA;&#x5B9A;&#x4E49;</span>
    }
}
</code></pre>
<p>&#x5F53;&#x7136;&#xFF0C;&#x4E60;&#x60EF;&#x7528;<code>book.js</code>&#x7684;&#x540C;&#x5B66;&#x4E5F;&#x53EF;&#x4EE5;&#xFF0C;<code>book.js</code>&#x53EA;&#x9700;&#x8981;&#x5C06; JSON &#x6570;&#x636E;&#x8F6C;&#x4E3A; JS &#x5BF9;&#x8C61;&#x5E76;&#x5BFC;&#x51FA;&#x5373;&#x53EF;&#xFF0C;&#x793A;&#x4F8B;&#x5982;&#x4E0B;&#x3002;</p>
<pre><code class="lang-js"><span class="hljs-built_in">module</span>.exports = {
  <span class="hljs-comment">// &#x4E66;&#x7C4D;&#x4FE1;&#x606F;</span>
  title: <span class="hljs-string">&apos;&#x4E66;&#x540D;&apos;</span>,
  description: <span class="hljs-string">&apos;&#x63CF;&#x8FF0;&apos;</span>,
  isbn: <span class="hljs-string">&apos;&#x56FE;&#x4E66;&#x7F16;&#x53F7;&apos;</span>,
  author: <span class="hljs-string">&apos;&#x4F5C;&#x8005;&apos;</span>,
  lang: <span class="hljs-string">&apos;zh-cn&apos;</span>,

  <span class="hljs-comment">// &#x63D2;&#x4EF6;&#x5217;&#x8868;</span>
  plugins: [],

  <span class="hljs-comment">// &#x63D2;&#x4EF6;&#x5168;&#x5C40;&#x914D;&#x7F6E;</span>
  pluginsConfig: {},

  <span class="hljs-comment">// &#x6A21;&#x677F;&#x53D8;&#x91CF;</span>
  variables: {
    <span class="hljs-comment">// &#x81EA;&#x5B9A;&#x4E49;</span>
  },
};
</code></pre>
<h1 id="&#x5B89;&#x88C5;&#x7F16;&#x8F91;&#x5668;">&#x5B89;&#x88C5;&#x7F16;&#x8F91;&#x5668;</h1>
<p>Gitbook &#x7F16;&#x5199;&#x53EF;&#x4EE5;&#x7528;&#x4EFB;&#x4F55;&#x6587;&#x672C;&#x7F16;&#x8F91;&#x5668;&#x3002;&#x5728;&#x8FD9;&#x91CC;&#xFF0C;&#x6211;&#x5F3A;&#x70C8;&#x5B89;&#x5229; Typora &#x7F16;&#x8F91;&#x5668;&#x3002;Typora &#x7F16;&#x8F91;&#x5668;&#x662F;<strong>&#x975E;&#x5E38;&#x975E;&#x5E38;&#x975E;&#x5E38;</strong>&#x597D;&#x7528;&#x7684; Markdown &#x6587;&#x4EF6;&#x7F16;&#x8F91;&#x5668;&#xFF0C;&#x76F4;&#x63A5;&#x8FDB;<a href="https://www.typora.io/" target="_blank">Typora &#x5B98;&#x7F51;</a>&#x4E0B;&#x8F7D;&#x5BF9;&#x5E94;&#x5E73;&#x53F0;&#x7684;&#x7248;&#x672C;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#x3002;&#x5F53;&#x7136;&#xFF0C;&#x4E60;&#x60EF;&#x7528; Visual Studio &#x6216;&#x8005;&#x5176;&#x4ED6;&#x6587;&#x672C;&#x7F16;&#x8F91;&#x5DE5;&#x5177;&#x7684;&#x7AE5;&#x978B;&#x4E5F;&#x53EF;&#x4EE5;&#x6839;&#x636E;&#x81EA;&#x5DF1;&#x7684;&#x4E60;&#x60EF;&#x81EA;&#x884C;&#x9009;&#x62E9;&#x3002;</p>
 
          </section>
          
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>
 
          <div class="book-footer">
            
            <div class="donate">
              <div>『 赠人玫瑰 🌹 手有余香 』</div>
              <button class="donate-btn" onclick="showModal()">赞赏</button>
            </div>
             
            <div class="copyright"></div>
            
          </div>
          
        </div>
      </div>
      
    </div>

     
    <a
      href="./"
      class="
        navigation navigation-prev
        
      "
      aria-label="Previous page: 零、简介"
    >
      <i class="fa fa-angle-left"></i>
    </a>
     
    <a
      href="2语法介绍.html"
      class="
        navigation navigation-next
        
      "
      aria-label="Next page: 二、Markdown语法介绍"
    >
      <i class="fa fa-angle-right"></i>
    </a>
      
  </div>
  <script>
    function showModal() {
      document.getElementsByClassName("mask")[0].style.display = "block";
      document.getElementsByClassName("donate-modal")[0].style.display =
        "block";
    }
    // 切换赞赏码
    function showDonateImg(num) {
      let alipay = "";
      let wxpay = ""
      if(num){
        wxpay = "hidden"
      }else{
        alipay = "hidden"
      }
      document.getElementById("wxpay-code").hidden = wxpay;
      document.getElementById("alipay-code").hidden = alipay;
      document.getElementsByName("pay-way")[num].checked = "checked";
    }

    // 关闭赞赏框
    function closeDonateModal() {
      document.getElementsByClassName("mask")[0].style.display = "none";
      document.getElementsByClassName("donate-modal")[0].style.display = "none";
    }

    var gitbook = gitbook || [];
    gitbook.push(function () {
      gitbook.page.hasChanged({"page":{"title":"一、Node环境准备","level":"1.2","depth":1,"next":{"title":"二、Markdown语法介绍","level":"1.3","depth":1,"path":"2语法介绍.md","ref":"2语法介绍.md","articles":[]},"previous":{"title":"零、简介","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-sharing","-search","-favicon","code","expandable-chapters","theme-lou","back-to-top-button","search-pro","flexible-alerts"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"search-pro":{},"code":{"copyButtons":true},"theme-lou":{"hide-elements":[".summary .gitbook-link"],"color":"#2096FF","copyright":{"author":"松露老师"},"forbidCopy":false,"logo":"assets/logo.png","search-placeholder":"众里寻他千百度","copyrightLogo":"assets/copyright.png","favicon":"assets/favicon.ico","autoNumber":3},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"flexible-alerts":{"style":"flat","note":{"label":"Note","icon":"fa fa-info-circle","className":"info"},"tip":{"label":"Tip","icon":"fa fa-lightbulb-o","className":"tip"},"warning":{"label":"Warning","icon":"fa fa-exclamation-triangle","className":"warning"},"danger":{"label":"Attention","icon":"fa fa-ban","className":"danger"}},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"松露老师","lang":"zh-cn","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"themeLou":{"nav":[{"target":"_blank","url":"https://space.bilibili.com/378936143","name":"B站"},{"target":"_blank","url":"https://ke.qq.com/course/3613637","name":"腾讯课堂"},{"target":"_blank","url":"https://edu.csdn.net/course/detail/32032","name":"CSDN"}],"footer":{"donate":{"button":"赞赏","avatar":"https://qinius.kujiajia.xyz/aaa-dobe/%E5%8D%A1%E9%80%9A%E8%90%8C%E5%A4%B4%E5%83%8F.png","nickname":"松露老师","message":"随意打赏，但不要超过一杯咖啡钱 ☕️","text":"『 赠人玫瑰 🌹 手有余香 』","wxpay":"https://qinius.kujiajia.xyz/aaa-dobe/%E8%B5%9E%E8%B5%8F%E7%A0%81-%E5%BE%AE%E4%BF%A1-%E6%96%B9.png","alipay":"https://qinius.kujiajia.xyz/aaa-dobe/%E8%B5%9E%E8%B5%8F%E7%A0%81-%E6%94%AF%E4%BB%98%E5%AE%9D-%E6%96%B9.png"},"copyright":true}}},"title":"Gitbook操作指南","gitbook":"*","description":"Gitbook电子书示例项目"},"file":{"path":"1环境准备.md","mtime":"2022-12-07T01:06:50.337Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-12-07T01:12:46.435Z"},"basePath":".","book":{"language":""}});
    });
  </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-flexible-alerts/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-theme-lou/lou.js"></script>
        
    

    </body>
</html>

